<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Listagem de assembleias</h3>
					
					<?php if( isset($condominio_id) ) { ?>
							<img src="<?php echo Kohana::$base_url; ?>/resources/images/add.png" class="addRegistry" onclick="javascript: update('<?php echo Kohana::$base_url; ?>assembleia/create/?condominio=<?=$condominio_id?>','assembleias', null);" />
					<?php }else{ ?>
							<a href="<?php echo Kohana::$base_url; ?>assembleia/create"><img src="<?php echo Kohana::$base_url; ?>/resources/images/add.png" class="addRegistry" /></a>
					<?php } ?>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
				<?php if( isset($msg) ){ ?>
					
					<div class="notification <?php echo $msgClass; ?> png_bg">
						<?php if( $isClosable ) { ?>
						<a href="#" class="close"><img src="<?php echo Kohana::$base_url; ?>/resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close"></a>
						<?php } ?>
						<div>
							<?php echo $msg; ?>
						</div>
					</div>
				
				<?php } ?>
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<table>
							
							<thead>
								<tr>
									<?php if( !isset($condominio_id) ) { ?>
								   	<th><input class="check-all" type="checkbox" /></th>
								   	<?php } ?>
								   	<th>Título</th>
									<th>Local</th>
									<th>Data</th>
									<th>Hora</th>
									<th>Ações</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<?php if( !isset($condominio_id) ) { ?>
									<td colspan="6">
									<?php }else{ ?>
									<td colspan="5">
									<?php } ?>
									
										<?php 
											if( !isset($condominio_id) ){
												echo $pagination->render();
												//print_r($pagination); 
											}
										?>
		
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
								
								<?php foreach($assembleias as $assembleia): ?>
								
									<tr>
										<?php if( !isset($condominio_id) ) { ?>
										<td><input type="checkbox" /></td>
										<?php } ?>
										<td><?=$assembleia->titulo?></td>
										<td><?=$assembleia->local?></td>
										<td><?=$assembleia->data?></td>
										<td><?=$assembleia->hora?></td>
										<td>
										
											<!-- Icons -->
											<?php 
												$parametersJS = $assembleia->id.",'".Request::current()->controller()."','".Kohana::$base_url."'";
												if( isset($condominio_id) )
													$parametersJS .= ",".$condominio_id;
											?>
											 <img src="/lisuraadm/resources/images/icons/pencil.png" alt="Editar" onclick="editing(<?=$parametersJS?>);" class="listActions" />
											 <img src="<?php echo Kohana::$base_url; ?>resources/images/icons/cross.png" alt="Excluir" onclick="confirmaDel(<?=$parametersJS?>);"  class="listActions" />
											 <img src="<?php echo Kohana::$base_url; ?>resources/images/icons/hammer_screwdriver.png" alt="Configurar" onclick="ajaxNavigate('<?php echo Kohana::$base_url.Request::current()->controller()."/add_topicos/".$assembleia->id; ?>', 'assembleias');"  class="listActions" />
											  
										</td>
									</tr>
									
								<?php endforeach ?>
								
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
					
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
